package com.ray.mapper;

import java.util.List;
import java.util.Map;

import com.ray.bean.DuplicateOrderUpdateRecordBean;
import com.ray.bean.OrderInfoDetailBean;
import com.ray.bean.UserBean;

/**
 * 用于保存采购修改订单物料信息的记录
 * @author libin
 *
 */
public interface DuplicateOrderUpdateRecordsMapper {
	
	int addDuplicateOrderUpdateRecords(DuplicateOrderUpdateRecordBean duplicateOrderUpdateRecordBean);

	String getOrderCreateUserIdOnOpenIdByOrderId(DuplicateOrderUpdateRecordBean duplicateOrderUpdateRecordBean);

	int updateDuplicateOrderRecords(DuplicateOrderUpdateRecordBean duplicateOrderUpdateRecordBean);

	List<DuplicateOrderUpdateRecordBean> getDuplicateOrderUpdateRecordsList(Map<String, Object> map);

	int changeIsApprovalById(Map<String, String> map);

	DuplicateOrderUpdateRecordBean getDuplicateOrderDataById(Map<String, String> map);
	int getDuplicateOrderUpdateRecordsListCount(Map<String, Object> map);
	
	List<DuplicateOrderUpdateRecordBean> getDuplicateOrderDataByOrderDetail(OrderInfoDetailBean orderInfoDetail);

	int deleteDuplicateOrder(Map<String, String> map);
	
	void deleteDuplicateOrderByOrder(OrderInfoDetailBean orderInfoDetail);

	String getOrderCreateUserByOrderId(DuplicateOrderUpdateRecordBean dourb);
}
